import { Controller, Get } from '@nestjs/common';
import { ConfigService } from './config.service';
import { Public } from '../../common/decorators/public.decorator';
import { ApiTags, ApiOperation, ApiResponse } from '@nestjs/swagger';

@ApiTags('配置管理')
@Controller('api/config')
export class ConfigPublicController {
  constructor(private readonly configService: ConfigService) {}

  // 获取应用配置（公开接口）
  @Public()
  @Get('app')
  @ApiOperation({
    summary: '获取应用配置',
    description: '获取公开的应用配置信息',
  })
  @ApiResponse({
    status: 200,
    description: '获取成功',
    type: Object,
  })
  getAppConfig() {
    return "获取应用配置待开发"; //this.configService.getAppConfig();
  }
}